package com.enums;

//权限
public enum BtnDbPermissionEnum {

	zkh("zkh", ",zkh"), purchase("采购管理员", ",purchase"), FineChemical("精细化学品", ",Finechemical"),
	BatteryChemical("锂电池", ",BatteryChemical"), sale("销售管理员", ",sale"), xyLimsSamplesBroadcast("新源公司", "xyBroadcast"),
	spLimsSamplesBroadcast("思派公司", "xyBroadcast");

	private String name = "";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String value = "";

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	BtnDbPermissionEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public static String getEnumValue(String name) {
		String valueString = "";
		for (BtnDbPermissionEnum e : BtnDbPermissionEnum.values()) {
			if (e.getName().equals(name)) {
				valueString = e.getValue();
			}
		}
		return valueString;
	}
}
